package dao

import (
	"zg3yk/inits"
	"zg3yk/model"
)

func AddFouc(userId int, foucId int) (err error) {
	result := &model.Fouc{
		UserId: userId,
		FoucId: foucId,
	}
	if err = inits.DB.Create(&result).Error; err != nil {
		return err
	}
	return nil
}
